package com.gmq.chapter02.t1;

/**
 * Created by gmq on 2017/08/14.
 *
 * @version 1.0
 * @since 2017/08/14 20:29
 */
public class ThreadB extends Thread {

    private HasSelfPrivateNum numRef;

    public ThreadB(HasSelfPrivateNum numRef) {
        super();
        this.numRef = numRef;
    }

    @Override
    public void run() {
        super.run();
        numRef.addI("b");
    }
}
